//引入请求器
import { service } from '@/utils/request'
//引入数据类型
import type { ceshi, answers, answersResult, getuid,logins } from '@/types/index'

/**
 *	查询我的发货信息记录总数
 */
export const getInfo = () => {
	return service<ceshi>({
		url: '/getInfo',
		method: 'GET'
	})
}

export const answersYourQuestions = (data : answers) => {
	return service<answersResult>({
		url: '/api/answersYourQuestions',
		method: 'POST',
		data: data
	})
}

export const generate = (data : getuid) => {
	return service<answersResult>({
		url: '/api/generateFollowUpQuestions?uid=' + data,
		method: 'GET'
	})
}

export const getschool = () => {
	return service<answersResult>({
		url: '/school/info/allList',
		method: 'GET'
	})
}
export const login = (data : logins) => {
	return logins<answersResult>({
		url: '/appUserPhoneAuthLogin',
		method: 'POST',
		data: data
	})
}
